﻿using Abp.Application.Services;
using Abp.Application.Services.Dto;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Partner.Surround.Editions.Dto;

namespace Partner.Surround.Editions
{
    /// <summary>
    /// 版本管理应用服务接口
    /// </summary>
    public interface IEditionAppService : IApplicationService
    {
        /// <summary>
        /// 获取全部版本列表
        /// </summary>
        /// <returns></returns>
        Task<ListResultDto<EditionListDto>> GetEditionsList();

        /// <summary>
        /// 获取版本用于编辑
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<GetEditionForEditOutput> GetEditionForEdit(NullableIdDto input);

        /// <summary>
        /// 创建或更新版本
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task CreateOrUpdateEdition(CreateOrUpdateEditionInput input);

        /// <summary>
        /// 删除版本
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task DeleteEdition(EntityDto input);

        /// <summary>
        /// 租户更换版本
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task MoveTenantsToAnotherEdition(MoveTenantsToAnotherEditionDto input);
    }
}
